$(function() {
    // vc.isLoadingEndFunc(null,function () {
    //
    // }, $(".chargeBtn"), "PayNativeFunc", function () {
    //     alert("充值");
    // })
    var userAgent = navigator.userAgent.toLowerCase();
    var platform;
    if(userAgent == null || userAgent == ''){
        platform = 'WEB' ;
        pcHeight();
    }else{
        if(userAgent.indexOf("android") != -1 ){
            platform = 'ANDROID';
            mobHeight();
        }else if(userAgent.indexOf("ios") != -1 || userAgent.indexOf("iphone") != -1 || userAgent.indexOf("ipad") != -1){
            platform = 'IOS';
            mobHeight();
        }else if(userAgent.indexOf("windows phone") != -1 ){
            platform = 'WP';
            pcHeight();
        }else{
            platform = 'WEB' ;
            pcHeight();
        }
    }
    function pcHeight() {
        var headImgHeight = parseInt($(".headBigImg").css("height").split("px")[0]);
        $(".container").css("height", (headImgHeight + 2561) + "px");
    }
    function mobHeight() {
        var headImgHeight = parseInt($(".headBigImg").css("height").split("px")[0]);
        console.log(headImgHeight);
        $(".container").css("height", (headImgHeight + 1247) + "px");
    }


});